package com.dragon.modules.yuegou.model.live;

import com.dragon.modules.yuegou.entity.live.BroadcastEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 直播间信息表模型类
 * 
 * @author ZSH
 * @date 2020-06-05 17:40:15
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Broadcast extends BroadcastEntity {

	/**
	 * 构造一个空直播间信息表模型对象
	 */
	public Broadcast(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个直播间信息表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Broadcast(BroadcastEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个直播间信息表模型对象
	 * 
	 * @param other 其它对象
	 */
	public Broadcast(Broadcast other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置直播间Id
	 * 
	 * @param id 直播间Id
	 * @return 当前对象
	 */
    public Broadcast id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getRoomId() {
    	return roomId;
    }

    /**
	 * 设置直播间id
	 * 
	 * @param roomId 直播间id
	 * @return 当前对象
	 */
    public Broadcast roomId(String roomId) {
    	this.roomId = roomId;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈Id
	 * 
	 * @param busdId 商圈Id
	 * @return 当前对象
	 */
    public Broadcast busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getName() {
    	return name;
    }

    /**
	 * 设置直播间名称
	 * 
	 * @param name 直播间名称
	 * @return 当前对象
	 */
    public Broadcast name(String name) {
    	this.name = name;
    	return this;
    }

	@Override
	public LocalDateTime getBeginTime() {
    	return beginTime;
    }

    /**
	 * 设置直播 开始时间
	 * 
	 * @param beginTime 直播 开始时间
	 * @return 当前对象
	 */
    public Broadcast beginTime(LocalDateTime beginTime) {
    	this.beginTime = beginTime;
    	return this;
    }

	@Override
	public LocalDateTime getEndTime() {
    	return endTime;
    }

    /**
	 * 设置结束 结束时间
	 * 
	 * @param endTime 结束 结束时间
	 * @return 当前对象
	 */
    public Broadcast endTime(LocalDateTime endTime) {
    	this.endTime = endTime;
    	return this;
    }

	@Override
	public String getAnchorName() {
    	return anchorName;
    }

    /**
	 * 设置主播昵称
	 * 
	 * @param anchorName 主播昵称
	 * @return 当前对象
	 */
    public Broadcast anchorName(String anchorName) {
    	this.anchorName = anchorName;
    	return this;
    }

	@Override
	public String getAnchorWechat() {
    	return anchorWechat;
    }

    /**
	 * 设置主播微信号
	 * 
	 * @param anchorWechat 主播微信号
	 * @return 当前对象
	 */
    public Broadcast anchorWechat(String anchorWechat) {
    	this.anchorWechat = anchorWechat;
    	return this;
    }

	@Override
	public String getCoverImg() {
    	return coverImg;
    }

    /**
	 * 设置直播间背景图
	 * 
	 * @param coverImg 直播间背景图
	 * @return 当前对象
	 */
    public Broadcast coverImg(String coverImg) {
    	this.coverImg = coverImg;
    	return this;
    }

	@Override
	public String getCoverImgMedia() {
    	return coverImgMedia;
    }

    /**
	 * 设置直播间背景图 微信mediaID
	 * 
	 * @param coverImgMedia 直播间背景图 微信mediaID
	 * @return 当前对象
	 */
    public Broadcast coverImgMedia(String coverImgMedia) {
    	this.coverImgMedia = coverImgMedia;
    	return this;
    }

	@Override
	public String getShareImg() {
    	return shareImg;
    }

    /**
	 * 设置直播间分享图
	 * 
	 * @param shareImg 直播间分享图
	 * @return 当前对象
	 */
    public Broadcast shareImg(String shareImg) {
    	this.shareImg = shareImg;
    	return this;
    }

	@Override
	public String getShareImgMedia() {
    	return shareImgMedia;
    }

    /**
	 * 设置直播间分享图 微信mediaID
	 * 
	 * @param shareImgMedia 直播间分享图 微信mediaID
	 * @return 当前对象
	 */
    public Broadcast shareImgMedia(String shareImgMedia) {
    	this.shareImgMedia = shareImgMedia;
    	return this;
    }

	@Override
	public String getFeedsImg() {
    	return feedsImg;
    }

    /**
	 * 设置直播卡片封面
	 * 
	 * @param feedsImg 直播卡片封面
	 * @return 当前对象
	 */
    public Broadcast feedsImg(String feedsImg) {
    	this.feedsImg = feedsImg;
    	return this;
    }

	@Override
	public String getFeedsImgMedia() {
    	return feedsImgMedia;
    }

    /**
	 * 设置直播卡片封面  微信mediaID
	 * 
	 * @param feedsImgMedia 直播卡片封面  微信mediaID
	 * @return 当前对象
	 */
    public Broadcast feedsImgMedia(String feedsImgMedia) {
    	this.feedsImgMedia = feedsImgMedia;
    	return this;
    }

	@Override
	public String getLiveStatus() {
    	return liveStatus;
    }

    /**
	 * 设置直播状态 101: 直播中, 102: 未开始, 103: 已结束, 104: 禁播, 105: 暂停中, 106: 异常, 107: 已过期
	 * 
	 * @param liveStatus 直播状态 101: 直播中, 102: 未开始, 103: 已结束, 104: 禁播, 105: 暂停中, 106: 异常, 107: 已过期
	 * @return 当前对象
	 */
    public Broadcast liveStatus(String liveStatus) {
    	this.liveStatus = liveStatus;
    	return this;
    }

	@Override
	public Boolean getType() {
    	return type;
    }

    /**
	 * 设置直播类型:1：横屏，0：竖屏
	 * 
	 * @param type 直播类型:1：横屏，0：竖屏
	 * @return 当前对象
	 */
    public Broadcast type(Boolean type) {
    	this.type = type;
    	return this;
    }

	@Override
	public Boolean getScreenType() {
    	return screenType;
    }

    /**
	 * 设置1：横屏，0：竖屏
	 * 
	 * @param screenType 1：横屏，0：竖屏
	 * @return 当前对象
	 */
    public Broadcast screenType(Boolean screenType) {
    	this.screenType = screenType;
    	return this;
    }

	@Override
	public Boolean getCloseLike() {
    	return closeLike;
    }

    /**
	 * 设置1：关闭点赞 0：开启点赞
	 * 
	 * @param closeLike 1：关闭点赞 0：开启点赞
	 * @return 当前对象
	 */
    public Broadcast closeLike(Boolean closeLike) {
    	this.closeLike = closeLike;
    	return this;
    }

	@Override
	public Boolean getCloseGoods() {
    	return closeGoods;
    }

    /**
	 * 设置1：关闭货架 0：打开货架
	 * 
	 * @param closeGoods 1：关闭货架 0：打开货架
	 * @return 当前对象
	 */
    public Broadcast closeGoods(Boolean closeGoods) {
    	this.closeGoods = closeGoods;
    	return this;
    }

	@Override
	public Boolean getCloseComment() {
    	return closeComment;
    }

    /**
	 * 设置1：关闭评论 0：打开评论
	 * 
	 * @param closeComment 1：关闭评论 0：打开评论
	 * @return 当前对象
	 */
    public Broadcast closeComment(Boolean closeComment) {
    	this.closeComment = closeComment;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public Broadcast createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置
	 * 
	 * @param createdBy 
	 * @return 当前对象
	 */
    public Broadcast createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedTime 
	 * @return 当前对象
	 */
    public Broadcast modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedBy 
	 * @return 当前对象
	 */
    public Broadcast modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 * 
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 * @return 当前对象
	 */
    public Broadcast del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置
	 * 
	 * @param delBy 
	 * @return 当前对象
	 */
    public Broadcast delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置
	 * 
	 * @param delTime 
	 * @return 当前对象
	 */
    public Broadcast delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }
}
